<?php session_start();
if($_SERVER['HTTP_REFERER'] != null)
{
	$_SESSION["previouspage"] = $_SERVER['HTTP_REFERER'];
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="css/template.css" />
<link rel="stylesheet" type="text/css" href="css/home.css" />
<link rel="stylesheet" type="text/css" href="css/login.css" />
<title>CoRAL- Login</title>
</head>
<body>
<div id="body-wrapper">
<?php include_once 'static/header.php'; ?>
<div id="body">
	<div id="content">
		<form name="login" action="controller/login.php" method="post">
			<h1>Login</h1>
			<p><?php echo $_SESSION["errmsg"];?></p>
			<p>
				<label for="accountNo">User Name</label>
				<input id="account" type="text" name="accountNo" maxlength="20" size="20" value="" />
			</p>
			<p>
				<label for="password">Password&nbsp;&nbsp;</label>
				<input name="password" id="psword" type="password" maxlength="18" size="20" value=""/>
			</p>
			<!-- Conference -->
			<p>
<!--				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-->
				<label>Role&nbsp;&nbsp;</label>
				&nbsp;&nbsp;
				admin   <input name="roles" type="radio" value="pcchair"/>
				&nbsp;&nbsp;
				reviewer<input name="roles" type="radio" value="reviewer" />
				&nbsp;&nbsp;
				author  <input name="roles" type="radio" value="author" checked/>
			</p>
			<!-- Conference ends -->
			<input type="submit" class="button" name="button" value="Login" />
		</form>
		
	</div>
</div>
<?php include_once 'static/footer.html'; ?>
</div>
</body>
</html>